package sen.queryUtils;

import java.util.Collection;

/**
 * 查询结果
 */
public class Results {

	private Collection<?> datas;
	private long total;
	private int rowStart;

	public Results() {
		super();
	}
	public Results(Collection<?> datas) {
		this.datas = datas;
	}

	public long getTotal() {
		return total;
	}

	public boolean isEmpty() {
		return datas==null || datas.isEmpty();
	}
	
	public void setTotal(long total) {
		this.total = total;
	}
	public Collection<?> getDatas() {
		return datas;
	}
	public void setDatas(Collection<?> datas) {
		this.datas = datas;
	}
	public int getRowStart() {
		return rowStart;
	}
	public void setRowStart(int rowStart) {
		this.rowStart = rowStart;
	}
}